--- a/http.c
+++ b/http.c
@@ -4,6 +4,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdlib.h>
 #ifndef NO_SSL
 #include <openssl/ssl.h>
 #include "mssl.h"
